package com.plata.base.utils;

import android.os.Handler;
import android.os.Looper;
import android.os.Message;

public class WeakHandler extends Handler {

    public WeakHandler() {
        super();
    }

    public WeakHandler(Looper looper) {
        super(looper);
    }

    public WeakHandler(Callback callback) {
        super(callback);
    }

    public WeakHandler(Looper looper, Callback callback) {
        super(looper, callback);
    }

    @Override
    public void dispatchMessage(Message msg) {
        try {
            super.dispatchMessage(msg);
        } catch (Throwable e) {
            e.printStackTrace();
        }
    }
}
